﻿#include "qsystem_cfg.h"
#include "ui_qsystem_cfg.h"

#include <synchapi.h>
#include <QDebug>
#include <QThread>
#include <QMessageBox>
#include <QFile>
#include <QDateTime>
#include <QPushButton>
#include <QTableWidgetItem>
#include <QListWidget>
#include <cstring>

#include "protocol/protocol.h"
#include "protocol/protocol_struct.h"
#include "app_struct.h"
#include "app_global.h"


Qsystem_cfg::Qsystem_cfg(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Qsystem_cfg)
{
    ui->setupUi(this);
}

Qsystem_cfg::~Qsystem_cfg()
{
    delete ui;
}

//获取系统参数
void Qsystem_cfg::on_getnet_bt_clicked()
{
//    if(m_tcpServer!=nullptr && !m_tcpServer->isListening())
//    {
//        QMessageBox::information(this,"提示","没有建立TCP连接");
//        return;
//    }
//    if(this->m_tcpServer->list_information.length() )
//    {
//        QMessageBox::information(this,"提示","没有连接任何客户端");
//        return;
//    }

}

//设置系统测试
void Qsystem_cfg::on_setnet_bt_clicked()
{

    qDebug()<<"emit WriteMessage"<<endl;
}

